
package io.summer.basis.excepts;

import io.summer.basis.api.ApiCode;
import io.summer.basis.enums.IEnumCode;

/**
 * 数据访问中出现的异常
 *
 * @author Moonlight
 */
public class DaoException extends AppException {
  private static final long serialVersionUID = 1L;

  public DaoException(String message) {
    super(ApiCode.COMMON_DAO_ERROR.getCode(), message);
  }

  public DaoException(String message, Object... params) {
    this(String.format(message, params));
  }

  public DaoException(IEnumCode code) {
    super(code);
  }
}
